﻿using System.Collections.Generic;

namespace Actya.Core.Widgets
{
	public interface IWidgetService
	{
		IWidget GetWidgetById(string id);
		IEnumerable<IWidget> GetWidgetsByIds(string[] widgetIds);
		void Save<T>(T widget) where T: IWidget;
		void Delete<T>(T widget) where T : IWidget;
		IWidget CreateWidget(WidgetType widgetModelTypeName);
	}
}
